package com.pe.pgn.clubpgn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pe.pgn.clubpgn.dao.TipoVehiculoDao;
import com.pe.pgn.clubpgn.domain.ClpbTipoVehiculo;
import com.pe.pgn.clubpgn.service.TipoVehiculoService;

@Service
public class TipoVehiculoServiceImpl extends GenericManagerImpl<ClpbTipoVehiculo, Long>
		implements TipoVehiculoService {

	@Autowired
	private TipoVehiculoDao tipoVehiculoDao;
	
	public void eliminarTipoVehiculo(Long id) {	
		tipoVehiculoDao.eliminarTipoVehiculo(id);
	}
	
	public void guardarTipoVehiculo(ClpbTipoVehiculo tipoVehiculo) {
		tipoVehiculoDao.guardarTipoVehiculo(tipoVehiculo);
	}

	public ClpbTipoVehiculo obtenerTipoVehiculo(Long id) {
		return tipoVehiculoDao.obtenerTipoVehiculo(id);
	}
	
	public List<ClpbTipoVehiculo> obtenerTiposVehiculo() {
		return tipoVehiculoDao.obtenerTiposVehiculo();
	}

	public List<ClpbTipoVehiculo> obtenerListaTiposVehiculo() {
		return tipoVehiculoDao.obtenerListaTiposVehiculo();
	}

}
